/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "采购产品",TableName = "purchasedetailsproduct")]
    public partial class purchasedetailsproduct:BaseEntity
    {
        /// <summary>
       ///
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="ProcurementId")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       [Required(AllowEmptyStrings=false)]
       public Guid ProcurementId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="PurchaseId")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       public Guid? PurchaseId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductName")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string ProductName { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ProductId")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       public Guid? ProductId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Specification")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       public string Specification { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="UnitId")]
       [MaxLength(36)]
       [Column(TypeName="uniqueidentifier")]
       public Guid? UnitId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="Price")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? Price { get; set; }

       /// <summary>
       ///产品数量
       /// </summary>
       [Display(Name ="产品数量")]
       [Column(TypeName="int")]
       public int? ProductNum { get; set; }

       /// <summary>
       ///产品总价
       /// </summary>
       [Display(Name ="产品总价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? ProductTotal { get; set; }

       
    }
}